package com.tjetc.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.tjetc.domain.District;
import com.tjetc.mapper.DistrictMapper;
import com.tjetc.service.DistrictService;

import java.util.List;

@Service
public class DistrictServiceImpl implements DistrictService{

    @Resource
    private DistrictMapper districtMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return districtMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(District record) {
        return districtMapper.insert(record);
    }

    @Override
    public int insertSelective(District record) {
        return districtMapper.insertSelective(record);
    }

    @Override
    public District selectByPrimaryKey(Integer id) {
        return districtMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(District record) {
        return districtMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(District record) {
        return districtMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<District> selBeijing() {
        return districtMapper.selBeijing();
    }

}
